﻿/*---------------------------------------------------------------------*/
// fileName="Directory.cs" CompanyName="SureKAM"
// Copyright SureKAM (c). All right reserved.
/*---------------------------------------------------------------------*/

using SureKAM.BackUp.Notify.Domain.ObjectValue;

namespace SureKAM.BackUp.Notify.Domain
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public class Directory
    {
        #region 私有字段
        private string id;
        private string address;
        private string name;
        private int realSize;
        private int maxSize;
        private string backUpServer;
        private DateTime lastChangeTime;
        private DateTime createTime;
        private List<Notify> notifys;
        private SendTemplate template;
        #endregion

        #region 属性
        /// <summary>
        /// ID
        /// </summary>
        public string ID
        {
            get { return this.id; }
            set { this.id = value; }
        }

        /// <summary>
        /// 目录地址（绝对地址）
        /// </summary>
        public string Address
        {
            get { return this.address; }
            set { this.address = value; }
        }

        /// <summary>
        /// 目录名称
        /// </summary>
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }

        /// <summary>
        /// 实际占用空间
        /// </summary>
        public int RealSize
        {
            get { return this.realSize; }
            set { this.realSize = value; }
        }

        /// <summary>
        /// 最大空间
        /// </summary>
        public int MaxSize
        {
            get { return this.maxSize; }
            set { this.maxSize = value; }
        }

        /// <summary>
        /// 服份服务器
        /// </summary>
        public string BackUpServer
        {
            get { return this.backUpServer; }
            set { this.backUpServer = value; }
        }

        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime LastChangeTime
        {
            get { return this.lastChangeTime; }
            set { this.lastChangeTime = value; }
        }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime
        {
            get { return this.createTime; }
            set { this.createTime = value; }
        }

        /// <summary>
        /// 通知者
        /// </summary>
        public List<Notify> Notifys
        {
            get { return this.notifys; }
            set { this.notifys = value; }
        }

        /// <summary>
        /// 邮件模板
        /// </summary>
        public SendTemplate Template
        {
            get { return this.template; }
            set { this.template = value; }
        }
        #endregion
    }
}
